package com.shelpe.services.simbasync.dao;

import com.shelpe.services.simbasync.model.Keywords;
import com.shelpe.services.simbasync.model.KeywordsExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface KeywordsMapper {
    int countByExample(@Param("user_id") String userId, @Param("example") KeywordsExample example);

    int deleteByExample(@Param("user_id") String userId, @Param("example") KeywordsExample example);

    int deleteByPrimaryKey(@Param("user_id") String userId, @Param("keywordId") Long keywordId);

    int insert(Keywords record);
    
    int insertBatch(@Param("user_id") String userId, @Param("itemList")List<Keywords> list);

    int insertSelective(Keywords record);

    List<Keywords> selectByExample(@Param("user_id") String userId, @Param("example") KeywordsExample example);

    Keywords selectByPrimaryKey(@Param("user_id") String userId, @Param("keywordId") Long keywordId);
    
    List<String> selectWordByUserId(@Param("user_id") String userId);

    int updateByExampleSelective(@Param("record") Keywords record, @Param("example") KeywordsExample example);

    int updateByExample(@Param("record") Keywords record, @Param("example") KeywordsExample example);

    int updateByPrimaryKeySelective(Keywords record);

    int updateByPrimaryKey(Keywords record);
    
    int existKeywordsTable(String tableName);
    
    int createKeywordsTable(@Param("user_id") String userId);
    
    int alterKeywordsTable(@Param("user_id") String userId);
    
}